const foo = bar
(1 || 2).baz();

const hello = 'world'
[1, 2, 3].forEach(addNumber);

const x = function() {}
`hello`

const y = function() {}
y
`hello`

const z = foo
  /regex/g.test(bar)

// github
var a = b
(x || y).doSomething()

var a = (a || b)
(x || y).doSomething()

var a = (a || b)
(x).doSomething()

var a = b
[a, b, c].forEach(doSomething)

var a = b
(x || y).doSomething()

var a = b
[a, b, c].forEach(doSomething)

let x = function() {}
`hello`

let x = function() {}
x
`hello`

x
  .y
z
`Invalid Test Case`

foo
  / bar /gym

foo
  / bar /g

foo
  / bar /g.test(baz)

foo
  /bar/gimuygimuygimuy.test(baz)

foo
  /bar/s.test(baz)

class B { field1 = obj
[field2]; };

class C { field1 = function() {}
[field2]; }